﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Workflow_Core_API.Persisted;
using WorkflowCore.Interface;

namespace WorkflowCore.Service.Manger
{
    public interface IWorkflowManger
    {
        /// <summary>
        /// 往WorkflowCore工作流系统中添加工作流模型
        /// </summary>
        /// <param name="definition"></param>
        void AddDefinition(PersistedWorkflowDefinition definition);
        /// <summary>
        /// 添加审批
        /// </summary>
        /// <param name="context"></param>
        /// <param name="operateType"></param>
        /// <param name="status"></param>
        /// <param name="auditTime"></param>
        /// <param name="auditUserId"></param>
        /// <param name="auditUserName"></param>
        void AddAudit(IStepExecutionContext context
             , OperateType operateType
             , WorkFlowAuditStatus status
             , DateTime? auditTime
             , long? auditUserId
             , string? auditUserName);
    }
}
